package cn.webrx;

import java.util.HashMap;
import java.util.Hashtable;

public class HashTable1 {
    public static void main(String[] args) {
        Hashtable<String,Integer> ht = new Hashtable<>();
        ht.put("s1",100);
        ht.put("s2",200);
        ht.put("s3",300);
        System.out.println(ht);

        HashMap<String,Integer> hm = new HashMap<>();
        hm.put("s1",100);
        hm.put("s2",200);
        hm.put("s3",300);
        System.out.println(hm);
    }
}
